<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>关键帧动画-单一属性</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        html, body{
            width: 100%;
            height: 100%;
        }
        div{
            height: 100%;
            width: 200px;
            position: fixed;
            background: red;
            transform: translateX(-100%);
            animation: run 2s ease-in-out forwards;
        }
        @keyframes run{
            0%{
                transform: translateX(-100%);
            }
            100%{
                transform: translateX(0);
            }
            
        }
    </style>
</head>
<body>
    <div>
    </div>
</body>
</html>